//
// Created by LiuYou on 2021/8/20.
//

#ifndef HIGHPERFORMANCELINUXSERVERPROGRAMMING_LINUX2_SINGLETON_HPP
#define HIGHPERFORMANCELINUXSERVERPROGRAMMING_LINUX2_SINGLETON_HPP


class Singleton {
public:
    /** 线程不安全。*/
    static Singleton* getInstance();

public:
    ~Singleton();

protected:
    Singleton();

    Singleton(const Singleton& rhs);

private:
    static Singleton* instance;

private:
    /** member object.*/

};


#endif //HIGHPERFORMANCELINUXSERVERPROGRAMMING_LINUX2_SINGLETON_HPP
